import request from '@/src/utils/request';

export const getBannerList = () => {
  return request({
    url: '/system/banner/list',
    method: 'get',
  });
};
// 获取商品展示列表
export const getGoodsList = () => {
  return request({
    url: '/system/goods/list',
    method: 'get',
  });
};
// 获取商品分类列表
export const getGoodsListAll = (params) => {
  return request({
    url: '/system/goods/list',
    method: 'get',
    params,
  });
};
// 获取特惠推荐列表
export const getRecommendList = () => {
  return request({
    url: '/system/goods/list1',
    method: 'get',
  });
};
// 获取爆款推荐列表
export const getHotTuijianList = () => {
  return request({
    url: '/system/goods/list2',
    method: 'get',
  });
};
// 获取一站全买列表
export const getOneStopList = () => {
  return request({
    url: '/system/goods/list3',
    method: 'get',
  });
};
// 获取新鲜好物列表
export const getFreshList = () => {
  return request({
    url: '/system/goods/list4',
    method: 'get',
  });
};
